package com.itheima.demo;

import java.io.File;
import java.io.IOException;

public class demo_file_001 {
    public static void main(String[] args) throws IOException {
        File file = new File("demo_file\\aaa");
        boolean mkdirs = file.mkdirs();
        System.out.println(mkdirs);
        File file1 = new File(file, "a.txt");
        boolean newFile = file1.createNewFile();
        System.out.println(newFile);
        File file3 = new File(file, "b.txt");
        boolean newFile1 = file3.createNewFile();
        System.out.println(newFile1);
    }
}
